<?php
defined('IN_PHPCMS') or exit('No permission resources.');
//模型缓存路径
define('CACHE_MODEL_PATH',CACHE_PATH.'caches_model'.DIRECTORY_SEPARATOR.'caches_data'.DIRECTORY_SEPARATOR);

class index {

	function __construct() {
		$this->_userid = param::get_cookie('_userid');
		$this->_username = param::get_cookie('_username');
		$this->_groupid = param::get_cookie('_groupid');
	}

	/*
	 * 打开首页
	 * */
	public  function  index(){
		include template('info','info');
	}

	/*
	 * 学生页面
	 * */
	public  function  student(){

		if($this->_userid == null){
			header("location:?m=member&c=index&a=login");
		}else{
			include template('info','main');
		}

	}

	/*
	 * 老师页面
	 * */
	public  function  teacher(){
		if($this->_userid == null){
			header("location:?m=member&c=index&a=login");
		}else {
			include template('info', 'main');
		}
	}





}
?>